<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>评论管理</title>
		<script type="text/javascript">
			var controller = 'http://localhost/0423/suning/index.php/Admin/Order';
			var root = 'http://localhost/0423/suning';
		</script>
<link rel="stylesheet" type="text/css" href="http://localhost/0423/suning/Application/Admin/View/Public/css/admin_style.css" />
<link rel="stylesheet" type="text/css" href="http://localhost/0423/suning/Application/Admin/View/Public/css/table.css" />
<link rel="stylesheet" type="text/css" href="http://localhost/0423/suning/Application/Admin/View/Public/css/question.css" />
<script src="http://localhost/0423/suning/Static/js/jquery-1.7.2.min.js"></script>
<script src="http://localhost/0423/suning/Application/Admin/View/Public/js/jquery-1.4.4.min.js"></script>
 <script src="http://localhost/0423/suning/Static/js/alert.js"></script>  
<script src="http://localhost/0423/suning/Application/Admin/View/Public/js/iframe.js"></script>
<script src="http://localhost/0423/suning/Application/Admin/View/Public/js/comment.js"></script>
</head>
<body class="right_body">
	<div class="body">
		<div class="top_subnav">CMS内容管理平台 ＞评论管理</div>


		<div style="clear:both"></div>
		<div class="use_meth">
			<div class="title">
				<div class="title_info light">
					评论管理
				</div>
			</div>
	<!-- /////////////////////// -->

	<div class="tab" style="display: block;"> 
	 <div class="content">
				<div class="qestion">
					<!--单个问题开始  全部咨询-->
					<?php foreach ($questionData as $k=>$v){?>
					<ul     <?php if($v['is_answer'] == 0){ ?>class='noanswer'<?php } ?> >
					<li>
						<span class="qtit" >商品名称</span>
						<span class="qcon"><a href="http://localhost/0423/suning/index.php/index/content/index/gid/<?php echo $v['gid'];?>" class="titcolor"><?php echo $v['goods_name'];?></a></span>
						<span class="qtime timecolr"><?php echo date('y-m-y h:i:s',$v['question_addtime']);?></span>
					</li>
					<li class="userask">
						<span class="qtit comcolor"> 评论内容</span>
						<span class="qcon"><?php echo $v['comment_content'];?>   ____<?php echo $v['username'];?></span>
					</li>
					<li class="userask">
						<span class="qtit comcolor"> 评 星</span>
						<span class="qcon comcolor">    <?php if($v['comment_start'] == 1){ ?>★<?php } ?>    <?php if($v['comment_start'] == 2){ ?>★★<?php } ?>    <?php if($v['comment_start'] == 3){ ?>★★★<?php } ?>    <?php if($v['comment_start'] == 4){ ?>★★★★<?php } ?>    <?php if($v['comment_start'] == 5){ ?>★★★★★<?php } ?></span>
						<span class="qtime" style="margin-top:-30px">
							    <?php if($v['comment_status'] == 0){ ?><input type="button" class="btnajax pass" cid = "<?php echo $v['cid'];?>" value="审核" /><input type="button" cid = "<?php echo $v['cid'];?>" class="btnajax commend" value="推荐" /><input type="button" cid = "<?php echo $v['cid'];?>" class="btnajax shield" value="锁定" /><input type="button" cid = "<?php echo $v['cid'];?>" class="btnajax del" value="删除" /><?php } ?>
							    <?php if($v['comment_status'] == 1){ ?>已锁定<?php } ?>
							    <?php if($v['comment_status'] == 2){ ?>已推荐<?php } ?>
							    <?php if($v['comment_status'] == 3){ ?>已审核<?php } ?>
						</span>
				
					</li>
	
				
					</ul>
					<?php }?>
					</div>
					<!--单个问题结束-->
					
					
			
			</div>	
			</dvi>	
    </div>
    
			<!-- /////////////////////// -->
	
			<!-- /////////////////////// -->
		</div>
	
	</div>

<script type="text/javascript">
    function hd_modal_del(id) {
        hd_modal({
            width: 400,//宽度
            height: 150,//高度
            title: '确认删除吗？',//标题
            content: '',//提示信息
            button: true,//显示按钮
            button_success: "确定",//确定按钮文字
            button_cancel: "取消",//关闭按钮文字
            timeout: 0,//自动关闭时间 0：不自动关闭
            shade: false,//背景遮罩
            shadeOpacity: 0.4,//背景透明度
            success: function () {//点击确定后的事件
                location.href = "http://localhost/0423/suning/index.php/Admin/Order" + '/del/gid/' + id;
            },
            cancel: function () {//点击关闭后的事件
                
            }
        });
    }
</script>


</body>
</html>
